﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace ProjetoComperio.DataLayer.Entities
{
    public class AcademicPerson : Person
    {

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DisplayName("Matricula")]
        public virtual string Enrollment { get; set; }

        [DisplayName("Curriculo Lattes")]
        public virtual string LattesPlatformWebPage { get; set; }

        #region AcademicOrganization
        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]

        public virtual int AcademicOrganizationID { get; set; }

        [DisplayName("Instituição Acadêmica")]
        public virtual AcademicOrganization AcademicOrganization { get; set; }
        #endregion


        public virtual ICollection<Contribution> Contributions { get; set; }

        public virtual ICollection<KnowledgeArea> KnowledgeAreas { get; set; }
    }
}
